STEP 5: Let's add the results to our list, so we can use them later in our program.

  • In LOGIC, click on . Drop Append indented inside your loop.
  • Change the list name from my_list to outcome_list.
  • Change the variable argument inside .append() from my_var to outcome.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)